package com.kjtpay.design_pattern.command;

/**
 * 具体的烤鸡翅命令，通知烤肉者
 */
class ChickenCommand extends Command {
    ChickenCommand(Barbecue receiver) {
        super(receiver);
        name = "烤鸡翅";
    }

    @Override
    String executeCommand() {
        return receiver.bakeChickenWing();
    }
}
